const app=getApp();
const imgUrl=app.globalData.imgUrl;

const shareUtil = require('../../utils/shareUtil.js');
Page({
    data: {
        info: {
            head_image: imgUrl+"/images/common/nologin.jpg",
            nickname: "点头像登录"
        },
        allnum: 0,
        hasnum: 0,
        imgUrl: imgUrl
    },
    connectTap: function() {
        wx.navigateTo({
            url: "../myself/about"
        });
    },
    onLoad: function(n) {
  
    },
    onChooseAvatar(e) {
      console.log(e);
      const { avatarUrl,nickname} = e.detail 
      this.setData({
        info: {
          head_image: avatarUrl,
          nickname: nickname
        }
      })
    },
    onReady: function() {},
    onShow: function() {
    },
    onHide: function() {},
    onUnload: function() {},
    onPullDownRefresh: function() {},
    onReachBottom: function() {},
    onShareAppMessage:shareUtil.shareConfig,
    onShareTimeline:shareUtil.shareConfig,
});